package com.cgnpc.cuddemo.funcInstance.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/******************************
 * 用途说明: 实体类
 * 数据库 非驼峰命名法读不出 TableName、TableField 、TableId(待测试)
 * 这里我用的是下划线，比如： cud_win_id
 *  作者姓名: PXMWRYA
 * 创建时间: 2019-06-17 14:39
 ******************************/
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cud_win")
public class CudWin implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId("cud_win_id")
    private String cudWinId;

    /**
     * 中奖等级
     */
    @TableField("cud_win_level")
    private String cudWinLevel;

    /**
     * 奖金额度
     */
    @TableField("cud_prize_amount")
    private String cudPrizeAmount;

    /**
     * 获奖者姓名
     */
    @TableField("cud_win_name")
    private String cudWinName;

    /**
     * 联系方式
     */
    @TableField("cud_phone")
    private String cudPhone;

    /**
     * 兑奖状态(0 待兑奖 1 已兑奖)
     */
    @TableField("cud_win_state")
    private String cudWinState;








    /**
     * 获奖感言
     */
    @TableField("cud_win_speech")
    private String cudWinSpeech;

    /**
     * 中奖日期
     */
    @TableField("cud_win_date")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date cudWinDate;

    /**
     * 发奖日期
     */
    @TableField("cud_award_date")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date cudAwardDate;

    /**
     * 收款方式
     */
    @TableField("cud_pay_type")
    private String cudPayType;

    /**
     * 银行卡号
     */
    @TableField("cud_bank_card_no")
    private String cudBankCardNo;

    /**
     * 奖金性质
     */
    @TableField("cud_bonus_property")
    private String cudBonusProperty;

    /**
     * 备注
     */
    @TableField("cud_memo")
    private String cudMemo;

    /**
     * 对应流程实例
     */
    @TableField("cud_proc_ins")
    private String cudProcIns;

    @TableField("createTime")
    private Date createTime;

    @TableField("updateTime")
    private Date updateTime;

    /**
     * 0表示再用，1表示删除
     */
    @TableField("del")
    private String del;

    /**
     * 版本号
     */
    @TableField("version")
    private String version;

    public Date getCudAwardDate() {
        return cudAwardDate == null? null : (Date) cudAwardDate.clone();
    }

    public void setCudAwardDate(Date cudAwardDate) {
        this.cudAwardDate = cudAwardDate == null? null : (Date)cudAwardDate.clone();
    }

    public Date getCudWinDate() {
        return cudWinDate== null? null : (Date) cudWinDate.clone();
    }

    public void setCudWinDate(Date cudWinDate) {
        this.cudWinDate = cudWinDate == null? null : (Date)cudWinDate.clone();
    }

    public Date getCreateTime() {
        return createTime== null? null : (Date) createTime.clone();
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime == null? null : (Date)createTime.clone();
    }

    public Date getUpdateTime() {
        return updateTime== null? null : (Date) updateTime.clone();
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime == null? null : (Date)updateTime.clone();
    }

    public String getCudWinId() {
        return cudWinId;
    }

    public void setCudWinId(String cudWinId) {
        this.cudWinId = cudWinId;
    }

    public String getCudWinLevel() {
        return cudWinLevel;
    }

    public void setCudWinLevel(String cudWinLevel) {
        this.cudWinLevel = cudWinLevel;
    }

    public String getCudPrizeAmount() {
        return cudPrizeAmount;
    }

    public void setCudPrizeAmount(String cudPrizeAmount) {
        this.cudPrizeAmount = cudPrizeAmount;
    }

    public String getCudWinName() {
        return cudWinName;
    }

    public void setCudWinName(String cudWinName) {
        this.cudWinName = cudWinName;
    }

    public String getCudPhone() {
        return cudPhone;
    }

    public void setCudPhone(String cudPhone) {
        this.cudPhone = cudPhone;
    }

    public String getCudWinState() {
        return cudWinState;
    }

    public void setCudWinState(String cudWinState) {
        this.cudWinState = cudWinState;
    }

    public String getCudWinSpeech() {
        return cudWinSpeech;
    }

    public void setCudWinSpeech(String cudWinSpeech) {
        this.cudWinSpeech = cudWinSpeech;
    }

    public String getCudPayType() {
        return cudPayType;
    }

    public void setCudPayType(String cudPayType) {
        this.cudPayType = cudPayType;
    }

    public String getCudBankCardNo() {
        return cudBankCardNo;
    }

    public void setCudBankCardNo(String cudBankCardNo) {
        this.cudBankCardNo = cudBankCardNo;
    }

    public String getCudBonusProperty() {
        return cudBonusProperty;
    }

    public void setCudBonusProperty(String cudBonusProperty) {
        this.cudBonusProperty = cudBonusProperty;
    }

    public String getCudMemo() {
        return cudMemo;
    }

    public void setCudMemo(String cudMemo) {
        this.cudMemo = cudMemo;
    }

    public String getCudProcIns() {
        return cudProcIns;
    }

    public void setCudProcIns(String cudProcIns) {
        this.cudProcIns = cudProcIns;
    }

    public String getDel() {
        return del;
    }

    public void setDel(String del) {
        this.del = del;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}